﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using AnyCAD.Platform.Core;
using AnyCAD.Platform.Geometry;
using AnyCAD.Presentation;
using System.Windows.Forms;

namespace AnyCADPresentation
{
    public class MyEntityNodeListener : EntityNodeListener
    {
        public MyEntityNodeListener(PresentationForm pForm)
        {
            m_pForm = pForm;
        }

        public override void OnAddEntity(EntityNode pNode)
        {
            m_pForm.ShowMessage("Added new object: " + pNode.GetName());
            //MessageBox.Show(, "C# Client Entity");
            // Set the user Id here

            //pNode.SetPosition(new Vector3(0, 0, 1000));
            //pNode.SetScale(new Vector3(0.1, 0.1, 0.1));

            //m_pView.UpdateView();
            pNode.UserId = ++m_pForm.m_nCurUserId;
        }

        public PresentationForm m_pForm;
    }
}
